<?php

require_once 'config.php';
require_once 'function.php';
require_once 'class/Mysql.class.php';

$db = new Mysql();

$en_arr = array(
'http://download.wondershare.com/video-converter-ultimate_full495.exe',
'http://download.wondershare.com/video-converter-pro_full460.exe',
'http://download.wondershare.com/video-converter-platinum_full50.exe',
'http://download.wondershare.com/streaming-audio-recorder_full383.exe',
'http://download.wondershare.com/dsb_deluxe_full18.exe',
'http://download.wondershare.com/video-editor_full846.exe',
'http://download.wondershare.com/video-converter-ultimate-mac_full735.dmg',
'http://download.wondershare.com/video-converter-pro-mac_full452.dmg',
'http://download.wondershare.com/video-converter-mac_full249.dmg',
'http://download.wondershare.com/mac-dvd-creator_full330.dmg',
'http://download.wondershare.com/pdf-converter_full524.exe',
'http://download.wondershare.com/pdf-converter-pro_full839.exe',
'http://download.wondershare.com/mac-pdf-converter_full653.dmg',
'http://download.wondershare.com/mac-pdf-converter-pro_full840.dmg',
'http://download.wondershare.com/mac-pdf-editor_full738.dmg',
'http://download.wondershare.com/mac-pdf-editor-pro_full841.dmg',
'http://download.wondershare.com/data-recovery_full542.exe',
'http://download.wondershare.com/mac-data-recovery_full737.dmg'
);

$fr_arr = array(
'http://download.wondershare.fr/video-converter-ultimate_full905.exe',
'http://download.wondershare.fr/video-converter-pro_full1052.exe',
'http://download.wondershare.fr/video-converter-platinum_full1037.exe',
'http://download.wondershare.fr/streaming-audio-recorder_full974.exe',
'http://download.wondershare.fr/dsb_deluxe_full944.exe',
'http://download.wondershare.fr/video-editor_full1084.exe',
'http://download.wondershare.fr/video-converter-ultimate-mac_full902.dmg',
'http://download.wondershare.fr/video-converter-mac_full899.dmg',
'http://download.wondershare.fr/video-converter-pro-mac_full1066.dmg',
'http://download.wondershare.fr/mac-dvd-creator_full998.dmg',
'http://download.wondershare.fr/pdf-converter_full911.exe',
'http://download.wondershare.fr/pdf-converter-pro_full914.exe',
'http://download.wondershare.fr/mac-pdf-converter_full916.dmg',
'http://download.wondershare.fr/mac-pdf-converter-pro_full920.dmg',
'http://download.wondershare.fr/mac-pdf-editor_full923.dmg',
'http://download.wondershare.fr/mac-pdf-editor-pro_full924.dmg',
'http://download.wondershare.fr/data-recovery_full935.exe',
'http://download.wondershare.com/mac-data-recovery_full737.dmg'
);

foreach( $en_arr as $k=>$v ){
	$sql = "update topic_article set ar_content = replace(ar_content,'{$v}','{$fr_arr[$k]}')";
}

echo 11;